import { createApp } from 'vue'
import ElementPlus from 'element-plus'

import App from './App.vue'
import {router} from './router'
import { createPinia } from 'pinia'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
const pinia = createPinia()


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
import 'element-plus/dist/index.css'

app.use(router)
app.use(pinia)
app.use(ElementPlus)

import 'virtual:windi.css'
import "./permission"
import "nprogress/nprogress.css"
import permission from "./directives/permission.js"
app.use(permission)
app.mount('#app')
